<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>正方形边长计算</title>
    <!-- 引入vue -->
    <script src="../../vue/vue.js"></script>
    <!-- <script src="../../works/Squary/js/jquery-3.6.0.min(1).js"></script> -->
</head>
<body>
    <div id="area">{{area()}}</div>
    
</body>
<script>
    let square = {
        side:10
    };
    let v = new Vue({
        el: '#area',
        data: square,
        methods:{
            area(){
                return '面积为：'+(this.side*this.side)

            },
        }
    })
</script>
</html>